package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_newsMapper;
import com.business.domain.T_news;

@Service("t_newsService")
@Transactional
public class T_newsService{
	private static Logger log = Logger.getLogger(T_newsService.class.getName());

	@Resource
    private T_newsMapper t_newsMapper;


	public int save(T_news obj){
		 return t_newsMapper.save(obj);
	}

	public int update(T_news obj){
		return t_newsMapper.update(obj);
	}

	public int delete(T_news obj){
		return t_newsMapper.delete(obj);
	}

	public T_news findById(T_news obj){
		return t_newsMapper.findById(obj);
	}

	public List findAll(T_news obj ){
		 return t_newsMapper.findAll(obj);
	}

	public List findHolidayCount(T_news obj ){
		return t_newsMapper.findHolidayCount(obj);
	}

	public int findCountAll(T_news obj ){
		 return t_newsMapper.findCountAll(obj);
	}

	public T_news findTypesCount(T_news obj ){
		return t_newsMapper.findTypesCount(obj);
	}

}
